<div class="row">
	<div class="col-md-12">
		<div class="table-header">
			Employee
		</div>
	<div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
		<div class="row">
			<div class="col-xs-6">
				<div class="dataTables_length" id="dynamic-table_length">
					<label>Display 
						<select name="dynamic-table_length" aria-controls="dynamic-table" class="form-control input-sm">
							<option value="10">10</option>
							<option value="25">25</option>
							<option value="50">50</option>
							<option value="100">100</option>
						</select> records</label>
					</div>
				</div>
				<div class="col-xs-6">
					<div id="dynamic-table_filter" class="dataTables_filter">
						<label>
							Search:
							<input type="search" class="form-control input-sm" placeholder="" aria-controls="dynamic-table"></label>
						</div>
					</div>
				</div>
				<table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" role="grid" aria-describedby="dynamic-table_info">
					<thead>
						<tr role="row">
							<th class="center sorting_disabled" rowspan="1" colspan="1" aria-label="">
								<label class="pos-rel">
									<input type="checkbox" class="ace">
									<span class="lbl"></span>
								</label>
							</th>
							<th class="sorting" tabindex="0" aria-controls="dynamic-table" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">User Name</th>
							<th class="sorting" tabindex="0" aria-controls="dynamic-table" rowspan="1" colspan="1" aria-label="Price: activate to sort column ascending">Company Name</th>
							<th class="hidden-480 sorting" tabindex="0" aria-controls="dynamic-table" rowspan="1" colspan="1" aria-label="Clicks: activate to sort column ascending">Contact Person</th>
							
							<th class="sorting" tabindex="0" aria-controls="dynamic-table" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">Phone</th>								
							
							<th class="sorting" tabindex="0" aria-controls="dynamic-table" rowspan="1" colspan="1" aria-label="Domain: activate to sort column ascending">Email</th>								
													
							<th class="sorting_disabled" rowspan="1" colspan="1" aria-label="">Action</th>
						</tr>

				</thead>

				<tbody>	
				<?php foreach ($employee_data->result() as $key => $value) {
					

					?>
						<tr role="row" class="even">
							<td class="center">
								<label class="pos-rel">
									<input type="checkbox" class="ace">
									<span class="lbl"></span>
								</label>
							</td>

							<td>
								<?php echo $value->username; ?>
							</td>
							<td><?php echo $value->company; ?></td>
							<td><?php echo $value->contact_person; ?></td>
							<td><?php echo $value->phone; ?></td>
							<td><?php echo $value->email; ?></td>
							<td>
								<div class="hidden-sm hidden-xs action-buttons">
									<a class="blue" href="#">
										<i class="ace-icon fa fa-search-plus bigger-130"></i>
									</a>

									<a class="green" href="#">
										<i class="ace-icon fa fa-pencil bigger-130"></i>
									</a>
									
									<?php echo anchor("admin_khmerhr/deleteEmployee/".$value->id,'<i class="ace-icon fa fa-trash-o bigger-130"></i>','class="red deleteEmployee"'); ?>
								</div>
								
							</td>
						</tr>
						<tr role="row" class="even">
							<td class="center">
								<label class="pos-rel">
									<input type="checkbox" class="ace">
									<span class="lbl"></span>
								</label>
							</td>

							<td>
								<?php echo form_input('userName',$value->username,'class="form-control input-sm"'); ?>
							</td>
							<td>
								
								<?php echo form_input('companyName',$value->company,'class="form-control input-sm"'); ?>
							</td>
							<td>
								
								<?php echo form_input('contactPerson',$value->contact_person,'class="form-control input-sm"'); ?>
							</td>
							<td>
								
								<?php echo form_input('phone',$value->phone,'class="form-control input-sm"'); ?>
							</td>
							<td>
								
								<?php echo form_input('email',$value->email,'class="form-control input-sm"'); ?>
							</td>
							<td>
								<div class="hidden-sm hidden-xs action-buttons">
									<a class="green" href="#">
										<i class="ace-icon fa fa-pencil bigger-130"></i>
									</a>
									
									<?php echo anchor("admin_khmerhr/deleteEmployee/".$value->id,'<i class="ace-icon fa fa-trash-o bigger-130"></i>','class="red deleteEmployee"'); ?>
								</div>
								
							</td>
						</tr>

					<?php 
				} ?>			
				
				</tbody>						
			</table>
			<div class="row">
				<div class="col-xs-6">
					<div class="dataTables_info" id="dynamic-table_info" role="status" aria-live="polite">
						Showing 1 to 10 of 23 entries
					</div>
				</div>
				<div class="col-xs-6">
					<div class="dataTables_paginate paging_simple_numbers" id="dynamic-table_paginate">
						<ul class="pagination">
							<li class="paginate_button previous disabled" aria-controls="dynamic-table" tabindex="0" id="dynamic-table_previous">
								<a href="#">Previous</a>
							</li>
							<li class="paginate_button active" aria-controls="dynamic-table" tabindex="0">
								<a href="#">1</a>
							</li>
							<li class="paginate_button " aria-controls="dynamic-table" tabindex="0">
								<a href="#">2</a>
							</li>
							<li class="paginate_button " aria-controls="dynamic-table" tabindex="0">
								<a href="">3</a>
							</li>
							<li class="paginate_button next" aria-controls="dynamic-table" tabindex="0" id="dynamic-table_next">
								<a href="#">Next</a>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
			
	</div>
</div>